﻿namespace Common.Infrastructure.Persistence.ConnectionString
{
    public interface IConnectionStringProvider
    {
        string GetConnectionString();
    }

    public class ConnectionStringProvider : IConnectionStringProvider
    {
        public string GetConnectionString()
        {
            //todo: get from configuration or something like this :) 
            return "HOST=localhost;PORT=5432;PROTOCOL=3;DATABASE=solo;USER ID=postgres;PASSWORD=ZAQ!2wsx;SSL=False;SSLMODE=Disable;TIMEOUT=30;POOLING=True;CONNECTIONLIFETIME=15;MINPOOLSIZE=1;MAXPOOLSIZE=20;SYNCNOTIFICATION=False;COMMANDTIMEOUT=300;ENLIST=False;PRELOADREADER=False;USEEXTENDEDTYPES=False;INTEGRATED SECURITY=False;COMPATIBLE=2.0.12.0;APPLICATIONNAME=43c02827-f2f8-4d2c-81ed-918572f8c855";
        }
    }
}